'''
Created on Aug 7, 2013

@author: csiebern
'''
import T3D

if __name__ == '__main__':
    gpsFile = './TrajData/130717(2).gps'
    strip1 = T3D.Traj(gpsFile)
    print "The first TimeStamp is {0} seconds".format(strip1.start)
    print "The last TimeStamp is  {0} seconds".format(strip1.end)
    print "The GPS file has {0} records".format(strip1.records)
    print "The Data Rate is {0} seconds".format(strip1.rate)
    
    state = strip1.getState(strip1.end)
    
    print "The Interpolant Time is {0} seconds".format(state[0])
    print "The Interpolated Latitude is {0} degrees".format(state[1])
    print "The Interpolated Longitude is {0} degrees".format(state[2])
    print "The Interpolated Altitude is {0} meters".format(state[3])
    print "The Interpolated Heading is {0} degrees".format(state[4])
    print "The Interpolated Roll is {0} degrees".format(state[5])
    print "The Interpolated Pitch is {0} degrees".format(state[6])
    
    LiDARfile = './TrajData/Rt._130717(2).las'
    rightLAS = T3D.LiDAR(LiDARfile)
    
    print "The Right LiDAR Sensor has {0} records.".format(rightLAS.records)
    